popover: Don't run full dispose() when unmanaging the widget
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 15 Sep 2014 12:05:43 +0000 (14:05 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 23 Sep 2014 00:59:09 +0000 (20:59 -0400)
commit0285a255bc6692a2869f95776846a2c6f461fcea
tree6c54ba3462d8b71a2e6094e51573fbadaea09e54
parent6b7b55f9b2b9eb7e05f68e932f9c804cb7ada412
popover: Don't run full dispose() when unmanaging the widget

A popover can go unmanaged for 2 reasons, when the widget it points to
gets destroyed, or transitionally in gtk_popover_set_relative_to(). In
both of these cases it makes sense to only unset popover information
about the previous widget managing it, if the popover is meant to
survive the unmanaging through extra refs.

Also, the focus widget prior to a modal popover being shown is considered
information about the relative_to widget, unset it on
gtk_popover_update_relative_to() with the rest.

https://bugzilla.gnome.org/show_bug.cgi?id=736193
gtk/gtkpopover.c